package com.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("优惠券和商品分类信息")
@TableName("sms_coupon_product_category_relation")
public class SmsCouponCategory {
    @ApiModelProperty("优惠券和商品分类id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("优惠券ID")
    @TableField("coupon_id")
    private Integer couponId;

    @ApiModelProperty("商品种类id")
    @TableField("product_category_id")
    private Integer productCategoryId;

    @ApiModelProperty("商品种类名称")
    @TableField("product_category_name")
    private String productCategoryName;

    @ApiModelProperty("父分类名称")
    @TableField("parent_category_name")
    private String parentCategoryName;
}
